advanced functions grade 12 polynomials